import { createRouter, createWebHistory } from 'vue-router';

// 引入路由对应的组件
const Login = () => import('../views/login.vue');
const Home = () => import('../views/home.vue');
const AdmissionCard = () => import('../views/admissionCard.vue');
// 定义路由规则
const routes = [
  {
    path: '/',
    name: 'Login',
    component: Login,
  },
  {
    path: '/Home',
    name: 'Home',
    component: Home,
  },
  {
    path: '/AdmissionCard',
    name: 'AdmissionCard',
    component: AdmissionCard,
  },
];

// 创建路由实例
const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;